#region Summary

// 
// Owner : JackieHan 
// 
// Solution : DailyCollection 
// 
// Project : Jackie.Utility.Notify
// 
// File : TitleInfo.cs
// 
// CopyRight : Copyright © 2010-2011 Skomart Corporation, All Rights Reserved 
// 
// Summary : 消极标题信息
// 
// History : 
//			2011-04-26 17:49:03	    Create 
// 

#endregion

#region Using

using System;
using System.Runtime.Serialization;
using System.Text;

#endregion

namespace Jackie.Utility.Notify.Domain
{
    /// <summary> 
    /// 消极标题信息
    /// </summary>
    [DataContract]
    public class TitleInfo
    {
        /// <summary>
        /// 编码
        /// </summary>
        [DataMember]
        public string Code { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        [DataMember]
        public string Name { get; set; }
        /// <summary>
        /// 说明
        /// </summary>
        [DataMember]
        public string Discription { get; set; }

        /// <summary>
        /// 是否是及时消息
        /// </summary>
        [DataMember]
        public bool InstantMessage { get; set; }

        public override string ToString()
        {
            var builder = new StringBuilder();
            builder.Append("TitleInfo:{");
            builder.AppendFormat("Code:{0},Name:{1},Discription:{2},InstantMessage:{3}", Code, Name, Discription,
                                 InstantMessage);
            builder.Append("}");
            return builder.ToString();
        }
    }
}